package com.his.mapper;


import com.his.entity.Schedule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.his.entity.ScheduleRule;
import com.his.entity.ScheduleRuleItem;

import java.util.List;

/**
 * <p>
 * 排班时间表 Mapper 接口
 * </p>
 *
 * @author Demoon Liu
 * @since 2022-02-20
 */
public interface ScheduleMapper extends BaseMapper<Schedule> {
    List<Schedule> selectAllSchedule();
    List<ScheduleRule> selectAllSchedule_rule();
    List<ScheduleRuleItem> selectAllSchedule_rule_item();
    void insertSchedule(Schedule schedule);
    void insertScheduleRule(ScheduleRule scheduleRule);
    void insertScheduleRuleItem(ScheduleRuleItem scheduleRuleItem);
    void deleteSchedule(Long id);
    void deleteScheduleRule(Long id);
    void deleteScheduleRuleItem(Long id);
    List<Schedule> selectScheduleBydid(Long deptid);
    List<ScheduleRule> selectSchedule_ruledid(Long deptid);
    List<ScheduleRuleItem> selectSchedule_rule_itemsid(Long skruleid);
}
